package test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

/**
 * @author oldliu
 * @since 1.0
 */
public class Filetest {
    public static void main(String[] args) throws FileNotFoundException {
        File file =new File("F:\\java82");
//        FileInputStream fileInputStream=new FileInputStream(file);
        show(file);


    }
    public static void show(File file){
        if(file.isFile()){
            System.out.println(file);
            return;
        }
        for(File f:file.listFiles()){
           show(f);
        }
    }
}
